Release 10.1A: OpenEdge Data Management:
SQL Reference


COUNT

Computes either the number of rows in a group of rows or the number of non-NULL values in a group of values.

Syntax

COUNT ( { [ ALL ] expression } | { DISTINCT column_ref } | * ) 

Example

This example illustrates the COUNT function:

SELECT COUNT (*)
     FROM orders
     WHERE order_date = SYSDATE ; 

Notes


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095